<?php
$real_path = '../';
require_once($real_path . 'classes/database.php');
require_once($real_path . 'functions/functions.php');
require_once($real_path . 'functions/file_functions.php');
require_once($real_path . 'functions/date_functions.php');
require_once($real_path . 'functions/news_functions.php');
require_once($real_path . 'functions/rewrite_functions.php');

session_start();

// Language
$lang_id = getValue('lg');
$array_lang	= array_language();
if (!isset($array_lang[$lang_id]))
{
	$lang_id = 1;
}

// Get translate language
require_once($real_path . 'languages/' . $array_lang[$lang_id][0] . '.php');

// Variable configurations
require_once($real_path . 'includes/inc_config.php');
$lang_path = lang_path();